{extend name="default/base/base_joinin" /}
{block name="joinin_main"}

<div class="breadcrumb"><span class="iconfont">&#xe6ff;</span><span><a href="">{$Think.lang.homepage}</a></span> <span class="arrow">></span> <span>{$Think.lang.merchant_entry_application}</span> </div>
<div class="main">
    <div class="sidebar">
        <div class="title">
            <h3>{$Think.lang.merchant_entry_application}</h3>
        </div>
        <div class="content">
            <dl>
                <dt class="{if $sub_step == 'step0'}current{/if}"> <i class="right"></i>{$Think.lang.enter_agreement}</dt>
            </dl>
            <dl show_id="0">
                <dt onclick="show_list('0');" style="cursor: pointer;"> <i class="down"></i>{$Think.lang.submit_application}</dt>
                <dd>
                    <ul>
                        <li class="{if $sub_step == 'step1'}current{/if}"><i></i>{$Think.lang.store_qualification_information}</li>
                        <li class="{if $sub_step == 'step2'}current{/if}"><i></i>{$Think.lang.financial_qualification_information}</li>
                        <li class="{if $sub_step == 'step3'}current{/if}"><i></i>{$Think.lang.store_operation_information}</li>
                    </ul>
                </dd>
            </dl>
            <dl>
                <dt class="{if $sub_step == 'pay'}current{/if}"> <i class="right"></i>{$Think.lang.contract_signing_payment}</dt>
            </dl>
            <dl>
                <dt> <i class="right"></i>{$Think.lang.store_opening}</dt>
            </dl>
        </div>
        <div class="title">
            <h3>{$Think.lang.platform_contact}</h3>
        </div>
        <div class="content">
            <ul>
                <li>{$Think.lang.phone}：{$Think.config.ds_config.site_phone}</li>
                <li>{$Think.lang.email}：{$Think.config.ds_config.site_email}</li>
            </ul> 
        </div>
    </div>
    <div class="right-layout">
        <div class="joinin-step">
            <ul>
                <li class="step1 {if $sub_step >= 'step0'}current{/if} {if $sub_step == 'pay'}current{/if}"><span>{$Think.lang.enter_agreement}</span></li>
                <li class="{if $sub_step >= 'step1'}current{/if} {if $sub_step == 'pay'}current{/if}"><span>{$Think.lang.store_qualification_information}</span></li>
                <li class="{if $sub_step >= 'step2'}current{/if} {if $sub_step == 'pay'}current{/if}"><span>{$Think.lang.financial_qualification_information}</span></li>
                <li class="{if $sub_step >= 'step3'}current{/if} {if $sub_step == 'pay'}current{/if}"><span>{$Think.lang.store_operation_information}</span></li>
                <li class="{if $sub_step >= 'step4'}current{/if} {if $sub_step == 'pay'}current{/if}"><span>{$Think.lang.contract_signing_payment}</span></li>
                <li class="step6"><span>{$Think.lang.store_opening}</span></li>
            </ul>
        </div>
        <div class="joinin-concrete">









            
<link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
<script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
<script type="text/javascript">
    $(document).ready(function(){

        $('#form_paying_money_certificate').validate({
            errorPlacement: function(error, element){
                element.nextAll('span').first().after(error);
            },
            rules : {
                paying_money_certificate: {
                    required: true
                },
                paying_money_certificate_explain: {
                    maxlength: 100 
                }
            },
            messages : {
                paying_money_certificate: {
                    required: '{$Think.lang.select_upload_payment_voucher}'
                },
                paying_money_certificate_explain: {
                    maxlength: jQuery.validator.format("{$Think.lang.most_words}")
                }
            }
        });

        $('#btn_paying_money_certificate').on('click', function() {
            $('#form_paying_money_certificate').submit();
        });

    });
</script>
<div class="joinin-pay">  
  <table border="0" cellpadding="0" cellspacing="0" class="store-joinin">
    <thead>
      <tr>
        <th colspan="6">{$Think.lang.store_contact_information}</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th>{$Think.lang.store_name}：</th>
        <td>{$joinin_detail.company_name}</td>

        <th>{$Think.lang.location}：</th>
        <td>{$joinin_detail.company_address}</td>
        <th>{$Think.lang.detailed_address}：</th>
        <td>{$joinin_detail.company_address_detail}</td>
      </tr>
      <tr>
        <th>{$Think.lang.contact_name}：</th>
        <td>{$joinin_detail.contacts_name}</td>
        <th>{$Think.lang.contact_number}：</th>
        <td>{$joinin_detail.contacts_phone}</td>
        <th>{$Think.lang.email_address}：</th>
        <td>{$joinin_detail.contacts_email}</td>
      </tr>
    </tbody>
  </table>
  <table border="0" cellpadding="0" cellspacing="0" class="store-joinin">
    <thead>
      <tr>
        <th colspan="2">{$Think.lang.id_information}</th>
      </tr>
    </thead>
    <tbody>
	  <tr>
        <th>{$Think.lang.id_card_name}：</th>
        <td colspan="20">{$joinin_detail.business_sphere}</td>
      </tr>
      <tr>
        <th>{$Think.lang.id_card_number}：</th>
        <td>{$joinin_detail.business_licence_number}</td></tr>

      <tr>
        <th>{$Think.lang.scanned_copy_id_card}：</th>
        <td colspan="20">
            {notempty name="$joinin_detail.business_licence_number_electronic"}
            <a data-lightbox="lightbox-image"  href="{:get_store_joinin_imageurl($joinin_detail['business_licence_number_electronic'])}"> <img src="{:get_store_joinin_imageurl($joinin_detail['business_licence_number_electronic'])}" alt="" /> </a>
            {else /}
            {$Think.lang.not_uploaded}
            {/notempty}
        </td>
      </tr>
    </tbody>
  </table>


  <table border="0" cellpadding="0" cellspacing="0" class="store-joinin">
    <thead>
      <tr>
        <th colspan="2">{$Think.lang.settlement_account_information}：</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th>{$Think.lang.alipay_account_name}：</th>
        <td>{$joinin_detail.settlement_bank_account_name}</td>
      </tr>
      <tr>
        <th>{$Think.lang.alipay_account}：</th>
        <td>{$joinin_detail.settlement_bank_account_number}</td>
      </tr>
    </tbody>
    
  </table>

  <form id="form_paying_money_certificate" action="{:url('Sellerjoininc2c/pay_save')}" method="post" enctype="multipart/form-data">
    <input id="verify_type" name="verify_type" type="hidden" />
    <input name="member_id" type="hidden" value="{$joinin_detail.member_id}" />
    <table border="0" cellpadding="0" cellspacing="0" class="store-joinin">
      <thead>
        <tr>
          <th colspan="2">{$Think.lang.store_operation_information}</th>
        </tr>
      </thead>
      <tbody>
      <tr>
          <th>{$Think.lang.seller_account}：</th>
          <td>{$joinin_detail.seller_name}</td>
        </tr>
        <tr>
          <th>{$Think.lang.store_name}：</th>
          <td>{$joinin_detail.store_name}</td>
        </tr>
        <tr>
          <th>{$Think.lang.store_level}：</th>
          <td>{$joinin_detail.storegrade_name}</td>
        </tr>
        <tr>
          <th>{$Think.lang.store_classification}：</th>
          <td>{$joinin_detail.storeclass_name}</td>
        </tr>
        <tr>
          <th>{$Think.lang.business_category}：</th>
          <td><table border="0" cellpadding="0" cellspacing="0" id="table_category" class="type">
              <thead>
                <tr>
                  <th>{$Think.lang.ctegory_1}</th>
                  <th>{$Think.lang.ctegory_2}</th>
                  <th>{$Think.lang.ctegory_3}</th>
                  <th>{$Think.lang.proportion}</th>
                </tr>
              </thead>
              <tbody>
                {notempty name="$joinin_detail.store_class_names"}
                {php}$store_class_names = unserialize($joinin_detail['store_class_names']);{/php}
                {php}$store_class_commis_rates = explode(',', $joinin_detail['store_class_commis_rates']);{/php}
                {notempty name="store_class_names"}
                <?php for($i=0, $length = count($store_class_names); $i < $length; $i++) {?>
                {php}@list($class1, $class2, $class3) = explode(',', $store_class_names[$i]);{/php}
                <tr>
                    <td>{$class1|default='0'}</td>
                    <td>{$class2|default='0'}</td>
                    <td>{$class3|default='0'}</td>
                    <td>{$store_class_commis_rates[$i]}%</td>
                </tr>
                <?php } ?>
                {/notempty}
                {/notempty}
              </tbody>
            </table></td>
        </tr>
        <tr>
          <th>{$Think.lang.audit_opinion}：</th>
          <td colspan="2">{$joinin_detail.joinin_message}</td>
        </tr>
      </tbody>
    </table>
      <table border="0" cellpadding="0" cellspacing="0" class="store-joinin">
          <tbody><tr>
              <th>{$Think.lang.upload_payment_voucher}：</th>
              <td>
                  <input name="paying_money_certificate" type="file" />
                  <span><a href="{:url('document/index',['code'=>'open_store'])}" target="_blank" title="不清楚平台收款账号，点击前往入驻协议查看">（不清楚平台收款账号？）</a></span>
              </td>
          </tr>
          <tr>
              <th>{$Think.lang.note}：</th>
              <td>
                  <textarea name="paying_money_certificate_explain" rows="10" cols="30"></textarea>
                  <span></span>
              </td>
          </tr></tbody>
      </table>
  </form>
  <div class="bottom"><a id="btn_paying_money_certificate" href="javascript:;" class="btn">{$Think.lang.ds_submit}</a></div></div>
            
            
            
            









        </div>
    </div>
</div>


{/block}
